class SimpleCamera:
	def __init__(self):
		self.cx=0
		self.cy=0
		self.w=0
		self.h=0
		self.scale=1.0
		#pass
	def transformCoord(self,coord):
		return (coord[0]-self.cx+0.5*self.w,0.5*self.h-coord[1]+self.cy)
	def recenterCamera(self,objects):
		x=0
		y=0
		for obj in objects:
			x=x+obj.x
			y=y+obj.y+0.5*obj.getHeight()
		self.cx=x/len(objects)
		self.cy=y/len(objects)